Optimal. Leaf size=589 \[ -\frac{B^2 g i^2 (b c-a d)^4 \text{PolyLog}\left (2,\frac{d (a+b x)}{b (c+d x)}\right )}{6 b^3 d^2}-\frac{B g i^2 (b c-a d)^4 \log \left (\frac{b c-a d}{b (c+d x)}\right ) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A+B\right )}{6 b^3 d^2}-\frac{B g i^2 (a+b x) (b c-a d)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{6 b^3 d}+\frac{g i^2 (a+b x)^2 (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{12 b^3}-\frac{B g i^2 (a+b x)^2 (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{6 b^3}+\frac{g i^2 (a+b x)^2 (c+d x) (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{6 b^2}+\frac{B g i^2 (c+d x)^2 (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{4 b d^2}-\frac{B g i^2 (c+d x)^3 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{6 d^2}+\frac{g i^2 (a+b x)^2 (c+d x)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{4 b}-\frac{B^2 g i^2 (b c-a d)^4 \log \left (\frac{a+b x}{c+d x}\right )}{12 b^3 d^2}-\frac{B^2 g i^2 (b c-a d)^4 \log (c+d x)}{4 b^3 d^2}+\frac{B^2 g i^2 x (b c-a d)^3}{12 b^2 d}+\frac{B^2 g i^2 (c+d x)^2 (b c-a d)^2}{12 b d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.58651, antiderivative size = 570, normalized size of antiderivative = 0.97, number of steps used = 46, number of rules used = 13, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.325, Rules used = {2528, 2525, 12, 2486, 31, 2524, 2418, 2390, 2301, 2394, 2393, 2391, 43} \[ \frac{B^2 g i^2 (b c-a d)^4 \text{PolyLog}\left (2,-\frac{d (a+b x)}{b c-a d}\right )}{6 b^3 d^2}+\frac{B g i^2 (b c-a d)^4 \log (a+b x) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{6 b^3 d^2}+\frac{A B g i^2 x (b c-a d)^3}{6 b^2 d}+\frac{B g i^2 (c+d x)^2 (b c-a d)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{12 b d^2}-\frac{g i^2 (c+d x)^3 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{3 d^2}-\frac{B g i^2 (c+d x)^3 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )}{6 d^2}+\frac{b g i^2 (c+d x)^4 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2}{4 d^2}-\frac{B^2 g i^2 (b c-a d)^4 \log ^2(a+b x)}{12 b^3 d^2}+\frac{B^2 g i^2 (b c-a d)^4 \log (a+b x)}{12 b^3 d^2}-\frac{B^2 g i^2 (b c-a d)^4 \log (c+d x)}{6 b^3 d^2}+\frac{B^2 g i^2 (b c-a d)^4 \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{6 b^3 d^2}+\frac{B^2 g i^2 (a+b x) (b c-a d)^3 \log \left (\frac{e (a+b x)}{c+d x}\right )}{6 b^3 d}+\frac{B^2 g i^2 x (b c-a d)^3}{12 b^2 d}+\frac{B^2 g i^2 (c+d x)^2 (b c-a d)^2}{12 b d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2528
Rule 2525
Rule 12
Rule 2486
Rule 31
Rule 2524
Rule 2418
Rule 2390
Rule 2301
Rule 2394
Rule 2393
Rule 2391
Rule 43
Rubi steps
\begin{align*} \int (66 c+66 d x)^2 (a g+b g x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx &=\int \left (\frac{(-b c+a d) g (66 c+66 d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d}+\frac{b g (66 c+66 d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{66 d}\right ) \, dx\\ &=\frac{(b g) \int (66 c+66 d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx}{66 d}+\frac{((-b c+a d) g) \int (66 c+66 d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2 \, dx}{d}\\ &=-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{(b B g) \int \frac{18974736 (b c-a d) (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{8712 d^2}+\frac{(B (b c-a d) g) \int \frac{287496 (b c-a d) (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{99 d^2}\\ &=-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{(2178 b B (b c-a d) g) \int \frac{(c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{d^2}+\frac{\left (2904 B (b c-a d)^2 g\right ) \int \frac{(c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{a+b x} \, dx}{d^2}\\ &=-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{(2178 b B (b c-a d) g) \int \left (\frac{d (b c-a d)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3}+\frac{(b c-a d)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 (a+b x)}+\frac{d (b c-a d) (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^2}+\frac{d (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b}\right ) \, dx}{d^2}+\frac{\left (2904 B (b c-a d)^2 g\right ) \int \left (\frac{d (b c-a d) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^2}+\frac{(b c-a d)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^2 (a+b x)}+\frac{d (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b}\right ) \, dx}{d^2}\\ &=-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{(2178 B (b c-a d) g) \int (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{d}-\frac{\left (2178 B (b c-a d)^2 g\right ) \int (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{b d}+\frac{\left (2904 B (b c-a d)^2 g\right ) \int (c+d x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{b d}-\frac{\left (2178 B (b c-a d)^3 g\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{b^2 d}+\frac{\left (2904 B (b c-a d)^3 g\right ) \int \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right ) \, dx}{b^2 d}-\frac{\left (2178 B (b c-a d)^4 g\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{a+b x} \, dx}{b^2 d^2}+\frac{\left (2904 B (b c-a d)^4 g\right ) \int \frac{A+B \log \left (\frac{e (a+b x)}{c+d x}\right )}{a+b x} \, dx}{b^2 d^2}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{\left (726 B^2 (b c-a d) g\right ) \int \frac{(b c-a d) (c+d x)^2}{a+b x} \, dx}{d^2}+\frac{\left (1089 B^2 (b c-a d)^2 g\right ) \int \frac{(b c-a d) (c+d x)}{a+b x} \, dx}{b d^2}-\frac{\left (1452 B^2 (b c-a d)^2 g\right ) \int \frac{(b c-a d) (c+d x)}{a+b x} \, dx}{b d^2}-\frac{\left (2178 B^2 (b c-a d)^3 g\right ) \int \log \left (\frac{e (a+b x)}{c+d x}\right ) \, dx}{b^2 d}+\frac{\left (2904 B^2 (b c-a d)^3 g\right ) \int \log \left (\frac{e (a+b x)}{c+d x}\right ) \, dx}{b^2 d}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{e (a+b x)} \, dx}{b^3 d^2}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{e (a+b x)} \, dx}{b^3 d^2}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{\left (726 B^2 (b c-a d)^2 g\right ) \int \frac{(c+d x)^2}{a+b x} \, dx}{d^2}+\frac{\left (1089 B^2 (b c-a d)^3 g\right ) \int \frac{c+d x}{a+b x} \, dx}{b d^2}-\frac{\left (1452 B^2 (b c-a d)^3 g\right ) \int \frac{c+d x}{a+b x} \, dx}{b d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{1}{c+d x} \, dx}{b^3 d}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{1}{c+d x} \, dx}{b^3 d}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{b^3 d^2 e}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{(c+d x) \left (-\frac{d e (a+b x)}{(c+d x)^2}+\frac{b e}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{b^3 d^2 e}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{726 B^2 (b c-a d)^4 g \log (c+d x)}{b^3 d^2}+\frac{\left (726 B^2 (b c-a d)^2 g\right ) \int \left (\frac{d (b c-a d)}{b^2}+\frac{(b c-a d)^2}{b^2 (a+b x)}+\frac{d (c+d x)}{b}\right ) \, dx}{d^2}+\frac{\left (1089 B^2 (b c-a d)^3 g\right ) \int \left (\frac{d}{b}+\frac{b c-a d}{b (a+b x)}\right ) \, dx}{b d^2}-\frac{\left (1452 B^2 (b c-a d)^3 g\right ) \int \left (\frac{d}{b}+\frac{b c-a d}{b (a+b x)}\right ) \, dx}{b d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \left (\frac{b e \log (a+b x)}{a+b x}-\frac{d e \log (a+b x)}{c+d x}\right ) \, dx}{b^3 d^2 e}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \left (\frac{b e \log (a+b x)}{a+b x}-\frac{d e \log (a+b x)}{c+d x}\right ) \, dx}{b^3 d^2 e}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^2 g (c+d x)^2}{b d^2}+\frac{363 B^2 (b c-a d)^4 g \log (a+b x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{726 B^2 (b c-a d)^4 g \log (c+d x)}{b^3 d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{\log (a+b x)}{a+b x} \, dx}{b^2 d^2}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{\log (a+b x)}{a+b x} \, dx}{b^2 d^2}-\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{\log (a+b x)}{c+d x} \, dx}{b^3 d}+\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{\log (a+b x)}{c+d x} \, dx}{b^3 d}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^2 g (c+d x)^2}{b d^2}+\frac{363 B^2 (b c-a d)^4 g \log (a+b x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{726 B^2 (b c-a d)^4 g \log (c+d x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^4 g \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{b^3 d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,a+b x\right )}{b^3 d^2}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,a+b x\right )}{b^3 d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \int \frac{\log \left (\frac{b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{b^2 d^2}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \int \frac{\log \left (\frac{b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{b^2 d^2}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^2 g (c+d x)^2}{b d^2}+\frac{363 B^2 (b c-a d)^4 g \log (a+b x)}{b^3 d^2}-\frac{363 B^2 (b c-a d)^4 g \log ^2(a+b x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{726 B^2 (b c-a d)^4 g \log (c+d x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^4 g \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{b^3 d^2}+\frac{\left (2178 B^2 (b c-a d)^4 g\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{b^3 d^2}-\frac{\left (2904 B^2 (b c-a d)^4 g\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{b^3 d^2}\\ &=\frac{726 A B (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^3 g x}{b^2 d}+\frac{363 B^2 (b c-a d)^2 g (c+d x)^2}{b d^2}+\frac{363 B^2 (b c-a d)^4 g \log (a+b x)}{b^3 d^2}-\frac{363 B^2 (b c-a d)^4 g \log ^2(a+b x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^3 g (a+b x) \log \left (\frac{e (a+b x)}{c+d x}\right )}{b^3 d}+\frac{363 B (b c-a d)^2 g (c+d x)^2 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b d^2}-\frac{726 B (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{d^2}+\frac{726 B (b c-a d)^4 g \log (a+b x) \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )}{b^3 d^2}-\frac{1452 (b c-a d) g (c+d x)^3 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}+\frac{1089 b g (c+d x)^4 \left (A+B \log \left (\frac{e (a+b x)}{c+d x}\right )\right )^2}{d^2}-\frac{726 B^2 (b c-a d)^4 g \log (c+d x)}{b^3 d^2}+\frac{726 B^2 (b c-a d)^4 g \log (a+b x) \log \left (\frac{b (c+d x)}{b c-a d}\right )}{b^3 d^2}+\frac{726 B^2 (b c-a d)^4 g \text{Li}_2\left (-\frac{d (a+b x)}{b c-a d}\right )}{b^3 d^2}\\ \end{align*}
Mathematica [A] time = 0.569135, size = 677, normalized size = 1.15 \[ \frac{g i^2 \left (\frac{4 B (b c-a d)^2 \left (-B (b c-a d)^2 \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac{b (c+d x)}{b c-a d}\right )\right )-2 \text{PolyLog}\left (2,\frac{d (a+b x)}{a d-b c}\right )\right )+b^2 (c+d x)^2 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+2 (b c-a d)^2 \log (a+b x) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+2 A b d x (b c-a d)+2 B d (a+b x) (b c-a d) \log \left (\frac{e (a+b x)}{c+d x}\right )-2 B (b c-a d)^2 \log (c+d x)-B (b c-a d) ((b c-a d) \log (a+b x)+b d x)\right )}{b^3}-\frac{B (b c-a d) \left (-3 B (b c-a d)^3 \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac{b (c+d x)}{b c-a d}\right )\right )-2 \text{PolyLog}\left (2,\frac{d (a+b x)}{a d-b c}\right )\right )+3 b^2 (c+d x)^2 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+2 b^3 (c+d x)^3 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+6 (b c-a d)^3 \log (a+b x) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )+6 A b d x (b c-a d)^2-B (b c-a d) \left (2 b d x (b c-a d)+2 (b c-a d)^2 \log (a+b x)+b^2 (c+d x)^2\right )+6 B d (a+b x) (b c-a d)^2 \log \left (\frac{e (a+b x)}{c+d x}\right )-6 B (b c-a d)^3 \log (c+d x)-3 B (b c-a d)^2 ((b c-a d) \log (a+b x)+b d x)\right )}{b^3}+3 b (c+d x)^4 \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2-4 (c+d x)^3 (b c-a d) \left (B \log \left (\frac{e (a+b x)}{c+d x}\right )+A\right )^2\right )}{12 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 2.291, size = 0, normalized size = 0. \begin{align*} \int \left ( bgx+ag \right ) \left ( dix+ci \right ) ^{2} \left ( A+B\ln \left ({\frac{e \left ( bx+a \right ) }{dx+c}} \right ) \right ) ^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.80073, size = 3050, normalized size = 5.18 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (A^{2} b d^{2} g i^{2} x^{3} + A^{2} a c^{2} g i^{2} +{\left (2 \, A^{2} b c d + A^{2} a d^{2}\right )} g i^{2} x^{2} +{\left (A^{2} b c^{2} + 2 \, A^{2} a c d\right )} g i^{2} x +{\left (B^{2} b d^{2} g i^{2} x^{3} + B^{2} a c^{2} g i^{2} +{\left (2 \, B^{2} b c d + B^{2} a d^{2}\right )} g i^{2} x^{2} +{\left (B^{2} b c^{2} + 2 \, B^{2} a c d\right )} g i^{2} x\right )} \log \left (\frac{b e x + a e}{d x + c}\right )^{2} + 2 \,{\left (A B b d^{2} g i^{2} x^{3} + A B a c^{2} g i^{2} +{\left (2 \, A B b c d + A B a d^{2}\right )} g i^{2} x^{2} +{\left (A B b c^{2} + 2 \, A B a c d\right )} g i^{2} x\right )} \log \left (\frac{b e x + a e}{d x + c}\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b g x + a g\right )}{\left (d i x + c i\right )}^{2}{\left (B \log \left (\frac{{\left (b x + a\right )} e}{d x + c}\right ) + A\right )}^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]